<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <link href="{{=URL('static','css/calendar.css')}}" rel="stylesheet" type="text/css"/>
    <link href="{{=URL('static','css/web2py.css')}}" rel="stylesheet" type="text/css"/>
    <link href="{{=URL('static','css/stupid.css')}}" rel="stylesheet" type="text/css"/>
    <link href="{{=URL('static','css/examples.css')}}" rel="stylesheet" type="text/css"/>
    <link href="{{=URL('static','css/local.css')}}" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" href="https://cdn.iikb.org/bootstrap/latest/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.iikb.org/font-awesome/latest/css/font-awesome.min.css">
    <link rel="shortcut icon" href="{{=URL('static','images/favicon.ico')}}" type="image/x-icon">
    <link rel="apple-touch-icon" href="{{=URL('static','images/favicon.png')}}">
    {{
    left_sidebar_enabled = globals().get('left_sidebar_enabled', False)
    right_sidebar_enabled = globals().get('right_sidebar_enabled', False)
    middle_column = {0: 'fill', 1: 'threequarters', 2: 'half'}[
    (left_sidebar_enabled and 1 or 0)+(right_sidebar_enabled and 1 or 0)]
    }}
    {{include "web2py_ajax.html"}}
	{{include "opengraph.html"}}
  </head>
  <body class="white">
	{{include "facebook.html"}}
    {{if response.flash:}}
    <div class="w2p_flash">
      {{=response.flash}}
    </div>
    {{pass}}
    <main class="white">
      <div class="container max900">
        {{if left_sidebar_enabled:}}
        <div class="quarter padded">{{block left_sidebar}}{{end}}</div>
        {{pass}}
        <div class="{{=middle_column}} padded">{{include}}</div>
        {{if right_sidebar_enabled:}}
        <div class="quarter padded">{{block right_sidebar}}{{end}}</div>
        {{pass}}
      </div>
      <div class="silver center padded">
		<div class="fb-like" data-href="https://greve.xyz/perdas" data-layout="button_count" data-action="like" data-show-faces="true" data-share="true"></div>
        <a href="https://twitter.com/share" class="twitter-share-button" data-url="https://greve.xyz/perdas" data-text="Quer perder quanto?" data-via="simpapoa" data-lang="pt" data-hashtags="VemPraGreve" data-dnt="true">Tweetar</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
      </div>
    </main>
    <footer class="white">
      <div class="container padded max900">
        <div class="fill">
          Copyleft {{=A("greve.xyz", _href="https://greve.xyz", _target="_blank")}} 2016. Site desenvolvido pela {{=A("iiKB", _href="https://iikb.org", _target="_blank")}} com amor e anarquia usando {{=A("Web2Py", _href="https://web2py.com", _target="_blank")}} para o {{=A("SIMPA", _href="http://simpa.org.br", _target="_blank")}} e distribu&iacute;do sob licença AGPL. {{=A("Código Fonte", _href="https://notabug.org/iikb/perdas2016", _target="_blank")}} deste site dispon&iacute;vel. Valores utilizados para c&aacute;lculo dispon&iacute;veis no {{=A("portal de transparência", _href="http://www2.portoalegre.rs.gov.br/transparencia/default.php?p_secao=11", _target="_blank")}} da Prefeitura de Porto Alegre.
        </div>
      </div>
    </footer>
  </body>  
  <script>
    // prevent android horizontal scrolling
    window.addEventListener("scroll", function(){window.scroll(0, window.pageYOffset);}, false);
  </script>
</html>
